import http from '@/utils/http.js'

//商品详情
export function getcommodity(id) {
  return http({
    url: `/product/${id}`
  })
}
//商品分类
export function getcalss(pid){
	return http({
	  url:`/product/category/${pid}`
  })
}
//获取地址列表
export function getaddress(){
	return http({
	url:'/user/address'
  })
}
//获取门店详情
export function getshop(id){
	return http({
		url:`/store/${id}`
	})
}
//商品列表
export function getproduct(data){
	return http({
		url:'/product',
		data
	})
}
//订单列表
export function getorderlist(data){
	return http({
		url:'/order',
		data
	})
}
//获取订单详情
export function getorderdetails(id){
	return http({
		url:`/order/${id}`
	})
}
//门店分类
export function getstoreclass(storeid){
	return http({
		url:`/product/store_category/${storeid}`
	})
}